package vitech;

import java.io.BufferedReader;
import java.io.FileReader;
import java.util.HashSet;
import java.util.Set;

import org.apache.commons.lang.StringUtils;

public class WfReqInputUtil {
	
	public static void main(String[] args) throws Exception {

		printWorkflows();
	}

	private static void printWorkflows() throws Exception {
		Set<String> wfNames = new HashSet<String>();
		BufferedReader br = new BufferedReader(new FileReader("C:/_Temp/temp/wfconversion1105.txt"));
		String line;
		String wfName;
		while ((line = br.readLine()) != null) {
			wfName = line.substring(9);
			if (!StringUtils.isBlank(wfName) && !wfNames.contains(wfName))
				wfNames.add(wfName);				
		}
		br.close();
		
		System.out.println("Found " + wfNames.size() + " workflows");
		System.out.println(wfNames);
	}
}
